package com.voole.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface BaseDao {
	
	@Select(value="${sql}")
	List<Map<String,Object>> getList(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	List<String> getStringList(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	Map<String, Object>	getObejct(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	String getString(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	Integer getCount(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	Double getDouble(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	Date getDate(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	void saveOrUpdate(@Param(value="sql")String sql);
	
	@Select(value="${sql}")
	void delete(@Param(value="sql")String sql);
	
}
